package com.huilunyingshi.videoprovider.dao;

import com.huilunyingshi.videoprovider.entity.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    //获取用户
    TUser getUser(@Param("username") String username);

    //登陆 用户
    TUser recordUser (@Param("username") String username,@Param("password") String password);

    int updateByUuid(@Param("username") String username,@Param("token")String token);

    //登出用户
    TUser outUser (@Param("username") String username);

    //更改密码

    int updateByPassword (@Param("username") String username,@Param("oldpassword") String oldpassword,@Param("newpassword") String newpassword);
}